<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>

<%@page import="java.sql.Connection"%>
<%@page import="java.sql.Statement"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="com.connection.jdbconnection"%>

<% HttpSession hs=request.getSession(false); 
if(hs.getAttribute("userName")==null)
{

response.sendRedirect("Login.jsp");
out.println(hs);
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>

<link rel="stylesheet" type="text/css" href="Style.css">

</head>
<body>
<div id="bv_Form1" style="position:absolute;background-color:#F0F0F0;left:140px;top:15px;width:882px;height:576px;z-index:8">
	<div align="left">
	<jsp:include page="header1.jsp" ></jsp:include>
</div>
	<form action="StudentUpdate" method="post">
		<div id="bv_TabMenu1"
			style="margin:0;padding:0;position:absolute;left:260px;top:143px;width:700px;height:40px;text-align:left;z-index:1;">

			<div id="Menu1">
				<hr  id="Line2"
					style="color:#000000;background-color:#000000;border:0px;margin:0;padding:0;position:absolute;left:-220px;top:47px;width:800px;height:2px;z-index:3">

				<ul>
<a href="AdminHome.jsp"><span>Home</span></a>&nbsp;&nbsp;
<a href="AdminView.jsp"><span>Student View</span></a>&nbsp;&nbsp;
<a href="AdminFind.jsp"><span>Find Student</span></a>&nbsp;&nbsp;
<a href="IcardGenerate.jsp"><span>Generate I-Card</span></a>&nbsp;&nbsp;
				</ul>

			</div>

		</div>
		<%

String userName=(String)session.getAttribute("userName");

session.setAttribute("userName", userName);
 %>
<div style="margin-left: 20px; margin-top: -22px"><font style="font-family: inherit; color:green; font-size: 18px"> Welcome &nbsp; </font> <%=userName %>
</div>
<div style="margin-left:785px; margin-top:-19px;"><font style="font-family:inherit; color:green; font-size: 18px; ">
<a href="Index.jsp" style="text-decoration: none;">LogOut</a></font></div>

		

		<%
		Connection conn=null;
		Statement st=null;
		ResultSet rs=null;
		String student_id=request.getParameter("id");
		try{
		jdbconnection db=new jdbconnection();
		st=db.jdbConnection();
		String QString="select * from adminprofile";
		rs=st.executeQuery(QString);  
		if(rs.next()){
		String aname=rs.getString(1);
		String designation=rs.getString(2);
		String contact=rs.getString(3);
		String doj=rs.getString(4);
		String sign=rs.getString(5);
		String address=rs.getString(6);
		String email=rs.getString(7);
		
	
		
		
		 %>


		<font color="Blue" size="4"
			style="margin-left: 300px;top:20px; text-align: center;position: absolute;top: 200px;font-family: cursive; "><u>
				Administrator Details...</u> </font>
		
		
		<div
			style="margin-left: 260px;top:20px; text-align: center;position: absolute;top: 230px;font: bold;"><br>
			Name : <%=aname %>
		</div>
		<div
						style="width: 150px;height: 70px;border-style: groove;margin-left: 620px;margin-top: 103px;">
						<img src="<%= sign %>" alt="image" style="width: 150px;height: 70px;" /></div>

		<br>
		<div
			style="margin-left: 254px;top:20px; text-align: center;position:absolute;top: 260px;font: bold;"><br>
			Designation : <%=designation %>
		</div>
		<br>

		<div
			style="margin-left: 253px;top:20px; text-align: center;position:absolute;top: 290px;font: bold;"><br>
			Contact Number : <%=contact %>
		</div>
		<br>

		<div
			style="margin-left: 253px;top:20px; text-align: center;position:absolute;top: 320px;font: bold;"><br>
			Date of Joining : <%=doj %>
		</div>
		<br>

		<div
			style="margin-left: 258px;top:20px; text-align: center;position:absolute;top: 350px;font: bold;"><br>
			Address : <%=address %></div>
		
		<br>
		<div
			style="margin-left: 251px;top:20px; text-align: center;position:absolute;top: 380px;font: bold;"><br>
			Email ID : <%=email %>
				
		</div>
		
		
		
		
		<%
				}
				st.close();
				conn.close();
				}
				catch(Exception e){}
				 %>
		
		


	</form>
<hr  id="Line3"style="color:#000000;background-color:#000000;border:0px;margin:0;padding:0;position:absolute;left:20px;top:550px;width:834px;height:2px;z-index:3">


<div align="center" style=" ">
	<jsp:include page="footer.jsp" ></jsp:include>
	</div>
</div>
</body>



</html>
